home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Lyapunov / LyapunovView.h < prev    next >
Encoding:
Text File  |  1992-08-01  |  1.6 KB  |  59 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <appkit/View.h>
  5.  
  6. #define MAXXSIZE    1024
  7. #define MAXYSIZE    768
  8. #define XSIZE        NX_WIDTH(&bounds)
  9. #define YSIZE        NX_HEIGHT(&bounds)
  10.  
  11. #define UNRAVEL        4        // see code for lya:: method with unravelled loop
  12.                             // this is how many times we unravelled it.
  13.                             
  14. #define RGB            3        // 3 bytes - red, green, blue
  15.  
  16. #define RED            0
  17. #define GREEN        1
  18. #define BLUE        2
  19.  
  20. @interface LyapunovView:View
  21. {
  22.     id    pattern;
  23.     id    posMatrix;
  24.     id  sizeMatrix;
  25.     id  windowSizeMatrix;
  26.     id    scaleMatrix;
  27.     id    depthMatrix;
  28.     id  boundsMatrix;
  29.     id  polarityMatrix;
  30.     id  reApplyButton;
  31.     id  saveMenuButton;
  32.     id  activeMapView;
  33.     id  activeMap;
  34.     
  35.     int        space[MAXXSIZE][MAXYSIZE];
  36.     unsigned char pixels[MAXXSIZE*MAXYSIZE*RGB];
  37.     float    xPos, yPos, xScale, yScale, initial, minExp;
  38.     int        dwell, settle, patternLength, *patternNum;
  39.     const    char *patternString;
  40.     char    *appPath;
  41.     BOOL    positive, firstInit;
  42. }
  43.  
  44. - initFrame:(const NXRect *)frm;    // designated initializer
  45. - appDidInit:sender;                // app delegate method
  46. - (int)lya:(double)a :(double)b;    // find a single lyap. exponent
  47. - go:sender;                        // compute image
  48. - reApply:sender;                    // re-compute color map
  49. - newParam:sender;                    // new image params
  50. - saveAsTIFF:sender;                // save image in a .tiff file
  51. - (BOOL)saveTIFF:(const char *)name;    // actually do write; YES on success
  52. - drawSelf:(NXRect *)rects :(int)rectCount;    // internal method
  53. - mouseDown:(NXEvent *)e;            // to easily get new coords
  54.  
  55. - windowWillResize:sender toSize:(NXSize *)frameSize;    // watch our window
  56. - windowDidResize:sender;                                // watch our window
  57.  
  58. @end
  59.